<template>
  <z-modal
    title="审批详情"
    v-bind="modalOption"
    @ok="handleOk"
    @cancel="handleCancel"
  >
    <TaskForm ref="kfbPend" :task="task" :formData="formData" @init="taskFormInit" />
  </z-modal>
</template>

<script>
import TaskForm from './TaskForm'
import ModalMixins from '@/mixins/ModalMixins'
export default {
  name: 'TaskHistoryFormModal',
  components: { TaskForm },
  mixins: [ModalMixins],
  props: {
    formData: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      task: {}
    }
  },
  methods: {
    show(task) {
      console.log(task)
      this.task = task
      this.visible = true
    },
    handleOk() {

    },
    taskFormInit() {

    }
  }
}
</script>

<style>

</style>
